<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/manage/common/taglibs.jsp"%>

<script language="JavaScript">
function manage_menu_editform_onSubmit(){
	return $('#manage_menu_editform').form('validate');
}
</script>


<div align="center">
    <form id="manage_menu_editform" action="${pageContext.request.contextPath}/manage/system/menu/${action=='create'?'saveJson':'updateJson'}.html" method="post">
      <jodd:form bean="menu" scope="request">
        <input name="id" type="hidden" />
        <table class="tableForm">
        
          <tr>
            <th style="width: 80px">菜单名称：</th>
            <td><input name="name" type="text" class="easyui-validatebox" data-options="required:true" /></td>
          </tr>
          <tr>
            <th>是否显示</th>
            <td><select name="showState" style="width: 150px;" panelHeight="auto" class="easyui-combobox">
                <c:forEach items="${allShowStates}" var="e">
                  <option value="${e.key}">${e.value}</option>
                </c:forEach>
            </select></td>
          </tr>          
          <tr>
            <th>菜单图标：</th>
            <td>
            <c:forEach items="${allIcons}" var="e">
                <span><input type="radio" name="icon" value="${e}" ${menu.icon==e? "checked='checked'":""} /></span>
                <span style='vertical-align:middle;display:inline-block; width:16px; height:16px;' class="${e}"></span>
              </c:forEach>
            </td>
          </tr>
          <tr>
            <th>备注</th>
            <td><textarea name="descn" rows="3" cols="40" class="easyui-validatebox"></textarea></td>
          </tr>
        </table>
      </jodd:form>
    </form>
</div>
